----------------------------------Spell Variables--------------------------------------
SPELL.m_iSpellID = 5016 -- Whatever value you want as long as it doesn't override any other spells' IDs.
SPELL.m_iRange = 240
SPELL.m_sName = "Powershot"
SPELL.m_sToolTip = [[Leap a long distance
					backwards.]]
SPELL.m_sIcon = "devin/blackbetty/spells/ranger/powershot.png"
SPELL.m_iCoolDown = 15
SPELL.m_iManaCost = 0
SPELL.m_bRequiresTarget = true
SPELL.m_iSpellType = SPELLTYPE_HYBRID

---------------------------------------------------------------------------------------

local range = 100
local weapondamage = 20

function SPELL:Cast( pl, target )
	print("Casted "..self.m_sName.."!")
	pl:SetVelocity(pl:GetVelocity()*-1) 
	pl:EmitSound("weapons/mortar/mortar_explode1.wav", 150, 100+math.random(-10,10))
	ParticleEffect( "impact_firebig", pl:GetPos() + Vector(0, 0, 32), Angle(0,0,0), pl )
	ParticleEffect( "impact_firebig", target:GetPos() + Vector(0, 0, 32), Angle(0,0,0), target )
	pl:SetVelocity(((Vector(0,0,0.1)*3000)+(pl:GetAngles():Forward() * -400)))
	target:SetVelocity(((pl:GetPos()- Vector(0, 0, 40)) - target:GetPos())*-6.5)
end



